package com.soladhoc.annonces.client.view.ui;

import com.google.gwt.safehtml.shared.SafeHtml;
import com.soladhoc.annonces.shared.proxy.AnnonceProxy;

public abstract class AnnonceTextRenderer extends AnnonceRenderer
{
    @Override
    public SafeHtml render(AnnonceProxy activity)
    {
        String value = getValue(activity);
        return toSafeHtml(value);
    }


    protected abstract String getValue(AnnonceProxy annonce);
}
